/*
 Navicat Premium Dump SQL

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 80403 (8.4.3)
 Source Host           : localhost:33069
 Source Schema         : test

 Target Server Type    : MySQL
 Target Server Version : 80403 (8.4.3)
 File Encoding         : 65001

 Date: 11/01/2025 13:31:41
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for Dishes
-- ----------------------------
DROP TABLE IF EXISTS `Dishes`;
CREATE TABLE `Dishes` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `dishTypeId` int unsigned NOT NULL,
  `description` varchar(100) DEFAULT NULL,
  `imageUrl` varchar(255) DEFAULT NULL,
  `score` decimal(4,2) DEFAULT '0.00',
  `scoreCount` int unsigned DEFAULT '0',
  `createdAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-- ----------------------------
-- Records of Dishes
-- ----------------------------
BEGIN;
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (32, '红烧肉', 1, '妈妈的味道', 'http://localhost:3000/uploads/1736519939292_800.jpg', 5.00, 1, '2025-01-10 14:39:00', '2025-01-11 05:24:44');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (33, '青椒肉丝', 2, '菜青椒、微辣', 'http://localhost:3000/uploads/1736519952309_800.jpeg', 0.00, 0, '2025-01-10 14:39:16', '2025-01-11 05:24:51');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (34, '炒青菜', 3, '好吃', 'http://localhost:3000/uploads/1736519966440_800.jpeg', 0.00, 0, '2025-01-10 14:39:36', '2025-01-10 14:39:36');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (35, '西红柿蛋汤', 4, '酸甜可口', 'http://localhost:3000/uploads/1736519991744_800.jpeg', 0.00, 0, '2025-01-10 14:39:52', '2025-01-11 05:25:02');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (36, '青椒肉丝面', 5, '无', 'http://localhost:3000/uploads/1736567919624_800.jpeg', 4.02, 2, '2025-01-11 03:58:59', '2025-01-11 05:25:08');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (37, '大白菜', 3, '好吃', 'http://localhost:3000/uploads/1736567988590_800.jpeg', 2.83, 3, '2025-01-11 03:59:49', '2025-01-11 05:28:30');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (39, '萝卜烧羊肉', 1, '萝卜烧羊肉萝卜烧羊肉', 'http://localhost:3000/uploads/1736572628812_800.jpg', 0.00, 0, '2025-01-11 05:17:28', '2025-01-11 05:17:28');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (40, '粉蒸肉', 1, '米粉裹上五花肉上锅蒸熟', 'http://localhost:3000/uploads/1736572795086_800.jpg', 3.33, 3, '2025-01-11 05:19:56', '2025-01-11 05:28:40');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (41, '回锅肉', 2, '经典的大蒜炒肉片', 'http://localhost:3000/uploads/1736572853873_800.jpeg', 0.00, 0, '2025-01-11 05:21:19', '2025-01-11 05:21:19');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (42, '干锅包菜', 2, '包菜和五花肉', 'http://localhost:3000/uploads/1736572912636_800.jpeg', 3.17, 3, '2025-01-11 05:22:10', '2025-01-11 05:29:20');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (43, '土豆丝', 3, '菜椒配土豆丝，不辣', 'http://localhost:3000/uploads/1736572971990_800.jpeg', 0.00, 0, '2025-01-11 05:23:17', '2025-01-11 05:23:17');
INSERT INTO `Dishes` (`id`, `name`, `dishTypeId`, `description`, `imageUrl`, `score`, `scoreCount`, `createdAt`, `updatedAt`) VALUES (44, '菠菜猪肝汤', 4, '菠菜、猪肝', 'http://localhost:3000/uploads/1736573030021_800.jpeg', 2.33, 3, '2025-01-11 05:24:07', '2025-01-11 05:28:49');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
